/* SetupRankingQuery page controller */
(function () {
    'use strict';
    angular.module('module.business')
        .controller('RankQueryHighController', RankQueryHighController);

    RankQueryHighController.$inject = ['$rootScope', '$scope', '$http', '$state', '$uibModal', '$log', '$document', '$uibPosition', '$interval', '$q','$uibModalInstance'];

    function RankQueryHighController($rootScope, $scope, $http, $state, $uibModal, $log, $document, $uibPosition, $interval, $q,$uibModalInstance) {
        var vm = this;
        vm.activate = activate;                                                 //页面初始化
        vm.cancel = cancel;                                               //点击'关闭'时执行
        vm.selected = [];
        activate();

        return vm;

        /**
         * @description     页面初始化
         */
        function activate() {
            $scope.$on('$viewContentLoaded', function () {
                App.initAjax(); // initialize core components
            });

            $rootScope.settings.layout.pageContentWhite = true;
            $rootScope.settings.layout.pageBodySolid = true;
            $rootScope.settings.layout.pageSidebarClosed = false;
        }
        /**
         * @description 点击取消按钮执行，
         */
        function cancel() {
            $uibModalInstance.close();
        }
    }
})();
